/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.yuhanginfo.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 配件互换Entity
 * @author yinhao
 * @version 2017-11-29
 */
public class PartsChange extends DataEntity<PartsChange> {
	
	private static final long serialVersionUID = 1L;
	private String groupId;		// 分组id
	private String partsCode;		// 配件号
	
	//
	private String groupPartsCode;
	
	public PartsChange() {
		super();
	}

	public PartsChange(String id){
		super(id);
	}

	@Length(min=0, max=11, message="分组id长度必须介于 0 和 11 之间")
	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}
	
	@Length(min=0, max=50, message="配件号长度必须介于 0 和 50 之间")
	public String getPartsCode() {
		return partsCode;
	}

	public void setPartsCode(String partsCode) {
		this.partsCode = partsCode;
	}

	public String getGroupPartsCode() {
		return groupPartsCode;
	}

	public void setGroupPartsCode(String groupPartsCode) {
		this.groupPartsCode = groupPartsCode;
	}
	
}